function isNumber(x) {
  return typeof x === "number";
}

console.log(isNumber(10));
console.log(isNumber(3.14));
console.log(isNumber("hello"));
console.log(isNumber("10"));
console.log(isNumber({}));
